package com.hgxd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hgxd.entity.pojo.Equipment;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
public interface IEquipmentService extends IService<Equipment> {

    List<Map<String, Object>> getAllOrganization();

    Integer getOrganizationOnlineRate();

    Integer getCountEquipmentType();

    /**
     * 根据organizationId查询对应设备
     * @param organizationId
     * @return
     */
    List<Equipment> getEquipmentsByOrganizationId(Integer organizationId);

    List<Equipment> getNewDataByOrganizationName(String organizationName);
}
